package wiki.zimo.certificate_manage.dao;

import wiki.zimo.certificate_manage.domain.Leader;
import org.springframework.data.jpa.repository.JpaRepository;
/**
 *
 * @author 子墨
 * @date 2018/10/9 17:33
 * @describe 分管领导 数据操作接口
 */
public interface LeaderDao extends JpaRepository<Leader, String> {

    /**
     * 根据教工号和密码查找对应的分管领导，登录用
     * @author 子墨
     * @date 2018/10/17 19:45
     * @params [num, pwd]
     * @return wiki.zimo.certificate_manage.domain.Leader
     */
    Leader findLeaderByTeacherNumAndTeacherPassword(String num,String pwd);
}